﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsProjectStandardMeasureItemValue")]
    public partial class MsProjectStandardMeasureItemValue
    {
        /// <summary>
        /// 类型Id
        /// </summary>
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [Key]
        [Column(TypeName = "int2")]
        public int SeqNo { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Column(TypeName = "varchar(20)")]
        public string Title { get; set; }

        /// <summary>
        /// 偏差的Key，如：Hight，Width, Depth等等
        /// </summary>
        [Column(TypeName = "varchar(20)")]
        public string Key { get; set; }

        /// <summary>
        /// 区间左值
        /// </summary>
        [Column(TypeName = "numeric(10)")]
        public decimal LeftValue { get; set; }

        /// <summary>
        /// 区间左值
        /// </summary>
        [Column(TypeName = "numeric(10)")]
        public decimal RightValue { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [Column(TypeName = "varchar(10)")]
        public string Unit { get; set; }

        /// <summary>
        /// 阶段Id
        /// </summary>
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ProjectStandardId { get; set; }

        [Display(Name = "项目ID")]
        [Column(TypeName = "uuid")]
        public Guid ProjectGuid { get; set; }

        [Display(Name = "公司ID")]
        [Column(TypeName = "uuid")]
        public Guid CompanyGuid { get; set; }

        [Key]
        [Column(TypeName = "uuid")]
        public Guid MsProjectStandardMeasureItemValueId { get; set; }
    }
}